.ai-chat-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f0fff0 0%, #e6ffe6 100%);
  
  .header {
    padding: 50px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(144, 238, 144, 0.4);
    
    .title {
      font-size: 48px;
      font-weight: bold;
      color: #6b8e6b;
      margin-bottom: 16px;
      display: block;
      text-shadow: 0 2px 4px rgba(107, 142, 107, 0.2);
    }
    
    .subtitle {
      font-size: 32px;
      color: #8fbc8f;
      line-height: 1.4;
      font-weight: 500;
    }
  }
  
  .chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    
    .welcome-message {
      text-align: center;
      padding: 80px 40px;
      
      .welcome-icon {
        font-size: 120px;
        margin-bottom: 40px;
      }
      
      .welcome-title {
        font-size: 48px;
        font-weight: bold;
        color: rgba(107, 142, 107, 0.95);
        margin-bottom: 20px;
        display: block;
        text-shadow: 0 2px 8px rgba(107, 142, 107, 0.2);
      }
      
      .welcome-desc {
        font-size: 32px;
        color: rgba(143, 188, 143, 0.9);
        line-height: 1.6;
        margin-bottom: 60px;
        display: block;
      }
      
      .preset-questions {
        text-align: left;
        max-width: 800px;
        margin: 0 auto;
        
        .preset-title {
          font-size: 36px;
          font-weight: 600;
          color: rgba(107, 142, 107, 0.95);
          margin-bottom: 30px;
          display: block;
          text-align: center;
        }
        
        .preset-question {
          background: rgba(255, 255, 255, 0.9);
          border-radius: 24px;
          padding: 30px 40px;
          margin-bottom: 20px;
          cursor: pointer;
          transition: all 0.3s ease;
          backdrop-filter: blur(10px);
          box-shadow: 0 8px 32px rgba(144, 238, 144, 0.3);
          border: 3px solid rgba(144, 238, 144, 0.4);
          
          &:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-6px);
            box-shadow: 0 16px 48px rgba(144, 238, 144, 0.4);
            border-color: #90ee90;
          }
          
          &:active {
            transform: translateY(-2px);
          }
          
          .preset-text {
            font-size: 30px;
            color: #6b8e6b;
            line-height: 1.5;
            font-weight: 500;
          }
        }
      }
    }
    
    .message-list {
      max-width: 1000px;
      margin: 0 auto;
      
      .message {
        margin-bottom: 40px;
        
        &.user-message {
          display: flex;
          justify-content: flex-end;
          
          .message-content {
            max-width: 70%;
            
            .message-bubble {
              background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
              border-radius: 36px 36px 12px 36px;
              padding: 32px 40px;
              box-shadow: 0 8px 32px rgba(200, 230, 201, 0.4);
              
              .message-text {
                font-size: 30px;
                color: #2e7d2e;
                line-height: 1.6;
                font-weight: 500;
              }
            }
            
            .message-time {
              font-size: 24px;
              color: rgba(107, 142, 107, 0.8);
              margin-top: 10px;
              text-align: right;
              display: block;
            }
          }
        }
        
        &.ai-message {
          display: flex;
          justify-content: flex-start;
          
          .message-content {
            max-width: 80%;
            
            .message-bubble {
              background: rgba(255, 255, 255, 0.9);
              border-radius: 36px 36px 36px 12px;
              padding: 32px 40px;
              backdrop-filter: blur(10px);
              box-shadow: 0 8px 32px rgba(144, 238, 144, 0.3);
              border: 3px solid rgba(144, 238, 144, 0.4);
              
              &.typing {
                padding: 50px;
                
                .typing-indicator {
                  display: flex;
                  gap: 12px;
                  align-items: center;
                  justify-content: center;
                  
                  .typing-dot {
                    width: 20px;
                    height: 20px;
                    border-radius: 50%;
                    background: #90ee90;
                    animation: typing 1.4s infinite ease-in-out;
                    
                    &:nth-child(1) {
                      animation-delay: -0.32s;
                    }
                    
                    &:nth-child(2) {
                      animation-delay: -0.16s;
                    }
                  }
                }
              }
              
              .message-text {
                font-size: 30px;
                color: #6b8e6b;
                line-height: 1.6;
                font-weight: 400;
              }
              
              .related-diaries {
                margin-top: 24px;
                padding-top: 24px;
                border-top: 3px solid rgba(144, 238, 144, 0.4);
                
                .related-title {
                  font-size: 26px;
                  color: #90ee90;
                  margin-bottom: 16px;
                  display: block;
                  font-weight: 600;
                }
                
                .related-diary {
                  background: rgba(144, 238, 144, 0.2);
                  border-radius: 16px;
                  padding: 20px 28px;
                  margin-bottom: 12px;
                  cursor: pointer;
                  transition: all 0.3s ease;
                  border: 2px solid rgba(144, 238, 144, 0.3);
                  
                  &:hover {
                    background: rgba(144, 238, 144, 0.3);
                    border-color: #90ee90;
                    transform: translateY(-2px);
                  }
                  
                  .diary-link {
                    font-size: 26px;
                    color: #66bb6a;
                    font-weight: 500;
                  }
                }
              }
            }
            
            .message-time {
              font-size: 24px;
              color: rgba(107, 142, 107, 0.8);
              margin-top: 10px;
              text-align: left;
              display: block;
            }
          }
        }
      }
    }
  }
  
  .input-area {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-top: 3px solid rgba(144, 238, 144, 0.4);
    
    .input-container {
      display: flex;
      gap: 20px;
      margin-bottom: 20px;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
      
      .message-input {
        flex: 1;
        background: rgba(255, 255, 255, 0.9);
        border: 3px solid rgba(144, 238, 144, 0.4);
        border-radius: 24px;
        padding: 32px 40px;
        font-size: 32px;
        color: #6b8e6b;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(144, 238, 144, 0.3);
        transition: all 0.3s ease;
        
        &:focus {
          border-color: #90ee90;
          box-shadow: 0 0 0 6px rgba(144, 238, 144, 0.3);
        }
        
        &::placeholder {
          color: #b8d8b8;
        }
      }
      
      .send-btn {
        background: linear-gradient(135deg, #a5d6a7 0%, #c8e6c9 100%);
        border: none;
        border-radius: 24px;
        padding: 32px 50px;
        font-size: 32px;
        font-weight: 600;
        color: #2e7d2e;
        box-shadow: 0 8px 32px rgba(165, 214, 167, 0.5);
        transition: all 0.3s ease;
        
        &::after {
          border: none;
        }
        
        &:active {
          transform: translateY(2px);
          box-shadow: 0 6px 24px rgba(165, 214, 167, 0.7);
        }
        
        &:hover {
          box-shadow: 0 12px 40px rgba(165, 214, 167, 0.6);
        }
        
        &:disabled {
          opacity: 0.5;
          cursor: not-allowed;
          transform: none;
        }
      }
    }
    
    .quick-actions {
      display: flex;
      gap: 20px;
      justify-content: center;
      max-width: 1000px;
      margin: 0 auto;
      
      .action-btn {
        background: rgba(144, 238, 144, 0.3);
        border: 2px solid rgba(144, 238, 144, 0.4);
        border-radius: 20px;
        padding: 16px 32px;
        font-size: 26px;
        color: #66bb6a;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        font-weight: 500;
        
        &::after {
          border: none;
        }
        
        &:hover {
          background: rgba(144, 238, 144, 0.4);
          border-color: #90ee90;
          transform: translateY(-2px);
        }
        
        &:active {
          transform: translateY(0);
        }
      }
    }
  }
  
  // 响应式适配
  @media (max-width: 375px) {
    .header {
      padding: 40px 32px;
      
      .title {
        font-size: 40px;
        margin-bottom: 12px;
      }
      
      .subtitle {
        font-size: 28px;
      }
    }
    
    .chat-area {
      padding: 32px;
      
      .welcome-message {
        padding: 60px 32px;
        
        .welcome-icon {
          font-size: 100px;
          margin-bottom: 32px;
        }
        
        .welcome-title {
          font-size: 40px;
          margin-bottom: 16px;
        }
        
        .welcome-desc {
          font-size: 28px;
          margin-bottom: 48px;
        }
        
        .preset-questions {
          .preset-title {
            font-size: 32px;
            margin-bottom: 24px;
          }
          
          .preset-question {
            padding: 24px 32px;
            margin-bottom: 16px;
            
            .preset-text {
              font-size: 26px;
            }
          }
        }
      }
      
      .message-list {
        .message {
          margin-bottom: 32px;
          
          &.user-message .message-content .message-bubble {
            padding: 28px 32px;
            
            .message-text {
              font-size: 26px;
            }
          }
          
          &.ai-message .message-content .message-bubble {
            padding: 28px 32px;
            
            &.typing {
              padding: 40px;
              
              .typing-indicator .typing-dot {
                width: 16px;
                height: 16px;
              }
            }
            
            .message-text {
              font-size: 26px;
            }
            
            .related-diaries {
              .related-title {
                font-size: 22px;
              }
              
              .related-diary {
                padding: 16px 24px;
                
                .diary-link {
                  font-size: 22px;
                }
              }
            }
          }
          
          .message-time {
            font-size: 20px;
          }
        }
      }
    }
    
    .input-area {
      padding: 32px;
      
      .input-container {
        gap: 16px;
        margin-bottom: 16px;
        
        .message-input {
          padding: 28px 32px;
          font-size: 28px;
        }
        
        .send-btn {
          padding: 28px 40px;
          font-size: 28px;
        }
      }
      
      .quick-actions {
        gap: 16px;
        
        .action-btn {
          padding: 12px 24px;
          font-size: 22px;
        }
      }
    }
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-20px);
  }
} 